﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace PGE.Models.Repositorios
{
    public interface IRepositorio<TEntity> where TEntity : class
    {
        DbSet<TEntity> DbSet { get; }
        IQueryable<TEntity> Queryable { get; }
        void Insert(TEntity entity);
        void Delete(TEntity entity);
        void Update(int entityId, TEntity entity);
        TEntity Find(int id);
    }
}